import request from '@/utils/request'

// 查询店铺列表列表
export function listTplay(query) {
    return request({
        url: '/system/tplay/list',
        method: 'get',
        params: query
    })
}

// 查询店铺列表详细
export function getTplay(shopId) {
    return request({
        url: '/system/tplay/info/' + shopId,
        method: 'get'
    })
}

// 新增店铺列表
export function addTplay(data) {
    return request({
        url: '/system/tplay/add',
        method: 'post',
        data: data
    })
}

// 修改店铺列表
export function updateTplay(data) {
    return request({
        url: '/system/tplay/update',
        method: 'put',
        data: data
    })
}

// 删除店铺列表
export function delTplay(shopId) {
    return request({
        url: '/system/tplay/delete/' + shopId,
        method: 'delete'
    })
}

export function updateStatus(data) {
    return request({
        url: '/system/tplay/updateStatus',
        method: 'post',
        data: data
    })
}

export function updatePublish(data) {
    return request({
        url: '/system/tplay/updatePublish',
        method: 'post',
        data: data
    })
}

export function getPlayBuyerList(query) {
    return request({
        url: '/system/tplay/getPlayBuyerList',
        method: 'get',
        params: query
    })
}